home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / AIncludes / OCEStandardMail.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  27.2 KB  |  961 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        OCEStandardMail.a
  3. ;
  4. ;    Contains:    Apple Open Collaboration Environment Standard Mail Interfaces.
  5. ;
  6. ;    Version:    Technology:    AOCE Toolbox 1.02
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1994-1998 by Apple Computer, Inc., all rights reserved.
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__OCESTANDARDMAIL__') = 'UNDEFINED' THEN
  18. __OCESTANDARDMAIL__ SET 1
  19.  
  20.     IF &TYPE('__APPLEEVENTS__') = 'UNDEFINED' THEN
  21.     include 'AppleEvents.a'
  22.     ENDIF
  23.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  24.     include 'Dialogs.a'
  25.     ENDIF
  26.     IF &TYPE('__FILES__') = 'UNDEFINED' THEN
  27.     include 'Files.a'
  28.     ENDIF
  29.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  30.     include 'Quickdraw.a'
  31.     ENDIF
  32.  
  33.     IF &TYPE('__OCEAUTHDIR__') = 'UNDEFINED' THEN
  34.     include 'OCEAuthDir.a'
  35.     ENDIF
  36.     IF &TYPE('__OCEMAIL__') = 'UNDEFINED' THEN
  37.     include 'OCEMail.a'
  38.     ENDIF
  39.  
  40.  
  41. kSMPVersion                        EQU        1
  42.  
  43. kSMPNativeFormatName            EQU        'natv'
  44. LetterSpec                RECORD 0
  45. spec                     ds.l    3                ; offset: $0 (0)
  46. sizeof                     EQU *                    ; size:   $C (12)
  47.                         ENDR
  48.  
  49. typeLetterSpec                    EQU        'lttr'
  50. ;     Wildcard used for filtering letter types. 
  51.  
  52. FilterAnyLetter                    EQU        'ltr*'
  53. FilterAppleLetterContent        EQU        'ltc*'
  54. FilterImageContent                EQU        'lti*'
  55.  
  56. LetterDescriptor        RECORD 0
  57. onDisk                     ds.b    1                ; offset: $0 (0)
  58. filler1                     ds.b    1                ; offset: $1 (1)
  59. fileSpec                 ds        FSSpec            ; offset: $2 (2)
  60.                          ORG 2
  61. mailboxSpec                 ds        LetterSpec        ; offset: $2 (2)
  62.                          ORG 72
  63. sizeof                     EQU *                    ; size:   $48 (72)
  64.                         ENDR
  65. ;SMPPSendAs values.  You may add the following values together to determine how the
  66. ;file is sent, but you may not set both kSMPSendAsEnclosureMask and kSMPSendFileOnlyMask.  This
  67. ;will allow you to send the letter as an image so that it will work with fax gateways
  68. ;and send as an enclosure as well.
  69. ;
  70.  
  71.  
  72. kSMPSendAsEnclosureBit            EQU        0                    ; Appears as letter with enclosures 
  73. kSMPSendFileOnlyBit                EQU        1                    ; Appears as a file in mailbox. 
  74. kSMPSendAsImageBit                EQU        2                    ; Content imaged in letter 
  75. ;  Values of SMPPSendAs 
  76.  
  77. kSMPSendAsEnclosureMask            EQU        $01
  78. kSMPSendFileOnlyMask            EQU        $02
  79. kSMPSendAsImageMask                EQU        $04
  80. ; typedef Byte                             SMPPSendAs
  81.  
  82. ;  Send Package Structures 
  83. SMPRecipientDescriptor    RECORD 0
  84. next                     ds.l    1                ; offset: $0 (0)        ;   Q-Link. 
  85. result                     ds.w    1                ; offset: $4 (4)        ;   result code when using the object. 
  86. recipient                 ds.l    1                ; offset: $6 (6)        ;   Pointer to a Packed Address. 
  87. size                     ds.l    1                ; offset: $A (10)        ;   length of recipient in bytes. 
  88. theAddress                 ds        MailRecipient    ; offset: $E (14)        ;   structure points into recipient and theRID. 
  89. theRID                     ds        RecordID        ; offset: $1C (28)        ;   structure points into recipient. 
  90. sizeof                     EQU *                    ; size:   $30 (48)
  91.                         ENDR
  92. ; typedef struct SMPRecipientDescriptor * SMPRecipientDescriptorPtr
  93.  
  94. SMPEnclosureDescriptor    RECORD 0
  95. next                     ds.l    1                ; offset: $0 (0)
  96. result                     ds.w    1                ; offset: $4 (4)
  97. fileSpec                 ds        FSSpec            ; offset: $6 (6)
  98. fileCreator                 ds.l    1                ; offset: $4C (76)        ;   Creator of this enclosure. 
  99. fileType                 ds.l    1                ; offset: $50 (80)        ;   File Type of this enclosure. 
  100. sizeof                     EQU *                    ; size:   $54 (84)
  101.                         ENDR
  102. ; typedef struct SMPEnclosureDescriptor * SMPEnclosureDescriptorPtr
  103.  
  104. SMPLetterPB                RECORD 0
  105. result                     ds.w    1                ; offset: $0 (0)        ;  result of operation 
  106. subject                     ds.l    1                ; offset: $2 (2)        ;  RString 
  107. senderIdentity             ds.l    1                ; offset: $6 (6)        ;  Letter is sent from this Identity 
  108. toList                     ds.l    1                ; offset: $A (10)        ;  Pointer to linked list 
  109. ccList                     ds.l    1                ; offset: $E (14)        ;  Pointer to linked list 
  110. bccList                     ds.l    1                ; offset: $12 (18)        ;  Pointer to linked list 
  111. script                     ds.w    1                ; offset: $16 (22)        ;  Identifier for language 
  112. textSize                 ds.l    1                ; offset: $18 (24)        ;  length of body data 
  113. textBuffer                 ds.l    1                ; offset: $1C (28)        ;  body of the letter 
  114. sendAs                     ds.b    1                ; offset: $20 (32)        ;  Send as Letter,Enclosure,Image 
  115. padByte                     ds.b    1                ; offset: $21 (33)
  116. enclosures                 ds.l    1                ; offset: $22 (34)        ;  files to be enclosed 
  117. drawImageProc             ds.l    1                ; offset: $26 (38)        ;  For imaging 
  118. imageRefCon                 ds.l    1                ; offset: $2A (42)        ;  For imaging 
  119. supportsColor             ds.b    1                ; offset: $2E (46)        ;  For imaging - set to true if you application supports color imaging 
  120. filler1                     ds.b    1                ; offset: $2F (47)
  121. sizeof                     EQU *                    ; size:   $30 (48)
  122.                         ENDR
  123. ; typedef struct SMPLetterPB *            SMPLetterPBPtr
  124.  
  125.  
  126. kSMPAppMustHandleEventBit        EQU        0
  127. kSMPAppShouldIgnoreEventBit        EQU        1
  128. kSMPContractedBit                EQU        2
  129. kSMPExpandedBit                    EQU        3
  130. kSMPMailerBecomesTargetBit        EQU        4
  131. kSMPAppBecomesTargetBit            EQU        5
  132. kSMPCursorOverMailerBit            EQU        6
  133. kSMPCreateCopyWindowBit            EQU        7
  134. kSMPDisposeCopyWindowBit        EQU        8
  135. ;  Values of SMPMailerResult 
  136.  
  137. kSMPAppMustHandleEventMask        EQU        $01
  138. kSMPAppShouldIgnoreEventMask    EQU        $02
  139. kSMPContractedMask                EQU        $04
  140. kSMPExpandedMask                EQU        $08
  141. kSMPMailerBecomesTargetMask        EQU        $10
  142. kSMPAppBecomesTargetMask        EQU        $20
  143. kSMPCursorOverMailerMask        EQU        $40
  144. kSMPCreateCopyWindowMask        EQU        $80
  145. kSMPDisposeCopyWindowMask        EQU        $0100
  146. ; typedef unsigned long                 SMPMailerResult
  147.  
  148. ;  Values of SMPMailerComponent
  149.  
  150. kSMPOther                        EQU        -1
  151. kSMPFrom                        EQU        32
  152. kSMPTo                            EQU        20
  153. kSMPRegarding                    EQU        22
  154. kSMPSendDateTime                EQU        29
  155. kSMPAttachments                    EQU        26
  156. kSMPAddressOMatic                EQU        16
  157. ; typedef unsigned long                 SMPMailerComponent
  158.  
  159.  
  160.  
  161. kSMPToAddress                    EQU        13
  162. kSMPCCAddress                    EQU        14
  163. kSMPBCCAddress                    EQU        15
  164. ; typedef MailAttributeID                 SMPAddressType
  165.  
  166.  
  167.  
  168. kSMPUndoCommand                    EQU        0
  169. kSMPCutCommand                    EQU        1
  170. kSMPCopyCommand                    EQU        2
  171. kSMPPasteCommand                EQU        3
  172. kSMPClearCommand                EQU        4
  173. kSMPSelectAllCommand            EQU        5
  174. ; typedef unsigned short                 SMPEditCommand
  175.  
  176.  
  177. kSMPUndoDisabled                EQU        0
  178. kSMPAppMayUndo                    EQU        1
  179. kSMPMailerUndo                    EQU        2
  180. ; typedef unsigned short                 SMPUndoState
  181.  
  182. ;SMPSendFormatMask:
  183. ;
  184. ;Bitfield indicating which combinations of formats are included in,
  185. ;should be included or, or can be included in a letter.
  186. ;
  187.  
  188.  
  189. kSMPNativeBit                    EQU        0
  190. kSMPImageBit                    EQU        1
  191. kSMPStandardInterchangeBit        EQU        2
  192. ;  Values of SMPSendFormatMask 
  193.  
  194. kSMPNativeMask                    EQU        $01
  195. kSMPImageMask                    EQU        $02
  196. kSMPStandardInterchangeMask        EQU        $04
  197. ; typedef unsigned long                 SMPSendFormatMask
  198.  
  199.  
  200. ;    Pseudo-events passed to the clients filter proc for initialization and cleanup.
  201. ;
  202.  
  203.  
  204. kSMPSendOptionsStart            EQU        -1
  205. kSMPSendOptionsEnd                EQU        -2
  206.  
  207. ;SMPSendFormatMask:
  208. ;
  209. ;Structure describing the format of a letter.  If kSMPNativeMask bit is set, the whichNativeFormat field indicates which of the client-defined formats to use.
  210. ;
  211.  
  212.  
  213. SMPSendFormat            RECORD 0
  214. whichFormats             ds.l    1                ; offset: $0 (0)
  215. whichNativeFormat         ds.w    1                ; offset: $4 (4)        ;  0 based 
  216. sizeof                     EQU *                    ; size:   $6 (6)
  217.                         ENDR
  218.  
  219.  
  220. SMPLetterInfo            RECORD 0
  221. letterCreator             ds.l    1                ; offset: $0 (0)
  222. letterType                 ds.l    1                ; offset: $4 (4)
  223. subject                     ds        RString32        ; offset: $8 (8)
  224. sender                     ds        RString32        ; offset: $2C (44)
  225. sizeof                     EQU *                    ; size:   $50 (80)
  226.                         ENDR
  227.  
  228.  
  229. kSMPSave                        EQU        0
  230. kSMPSaveAs                        EQU        1
  231. kSMPSaveACopy                    EQU        2
  232. ; typedef unsigned short                 SMPSaveType
  233.  
  234. SMPMailerState            RECORD 0
  235. mailerCount                 ds.w    1                ; offset: $0 (0)
  236. currentMailer             ds.w    1                ; offset: $2 (2)
  237. upperLeft                 ds        Point            ; offset: $4 (4)
  238. hasBeenReceived             ds.b    1                ; offset: $8 (8)
  239. isTarget                 ds.b    1                ; offset: $9 (9)
  240. isExpanded                 ds.b    1                ; offset: $A (10)
  241. canMoveToTrash             ds.b    1                ; offset: $B (11)
  242. canTag                     ds.b    1                ; offset: $C (12)
  243. padByte2                 ds.b    1                ; offset: $D (13)
  244. changeCount                 ds.l    1                ; offset: $E (14)
  245. targetComponent             ds.l    1                ; offset: $12 (18)
  246. canCut                     ds.b    1                ; offset: $16 (22)
  247. canCopy                     ds.b    1                ; offset: $17 (23)
  248. canPaste                 ds.b    1                ; offset: $18 (24)
  249. canClear                 ds.b    1                ; offset: $19 (25)
  250. canSelectAll             ds.b    1                ; offset: $1A (26)
  251. padByte3                 ds.b    1                ; offset: $1B (27)
  252. undoState                 ds.w    1                ; offset: $1C (28)
  253. undoWhat                 ds        Str63            ; offset: $1E (30)
  254. sizeof                     EQU *                    ; size:   $5E (94)
  255.                         ENDR
  256.  
  257. SMPSendOptions            RECORD 0
  258. signWhenSent             ds.b    1                ; offset: $0 (0)
  259. priority                 ds.b    1                ; offset: $1 (1)
  260. sizeof                     EQU *                    ; size:   $2 (2)
  261.                         ENDR
  262. ; typedef struct SMPSendOptions *        SMPSendOptionsPtr
  263.  
  264. ; typedef SMPSendOptionsPtr *            SMPSendOptionsHandle
  265.  
  266.  
  267. SMPCloseOptions            RECORD 0
  268. moveToTrash                 ds.b    1                ; offset: $0 (0)
  269. addTag                     ds.b    1                ; offset: $1 (1)
  270. tag                         ds        RString32        ; offset: $2 (2)
  271. sizeof                     EQU *                    ; size:   $26 (38)
  272.                         ENDR
  273. ; typedef struct SMPCloseOptions *        SMPCloseOptionsPtr
  274.  
  275.  
  276. ; ----------------------------------------------------------------------------------------
  277. ;    Send Package Routines
  278. ;----------------------------------------------------------------------------------------
  279.  
  280. ;
  281. ; pascal OSErr SMPSendLetter(SMPLetterPBPtr theLetter)
  282. ;
  283.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  284.         Macro
  285.         _SMPSendLetter
  286.             move.l              #$000201F4,D0
  287.             dc.w                $AA5D
  288.         EndM
  289.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  290.         IMPORT_CFM_FUNCTION SMPSendLetter
  291.     ENDIF
  292.  
  293. ;
  294. ; pascal OSErr SMPNewPage(OpenCPicParams *newHeader)
  295. ;
  296.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  297.         Macro
  298.         _SMPNewPage
  299.             move.l              #$00020834,D0
  300.             dc.w                $AA5D
  301.         EndM
  302.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  303.         IMPORT_CFM_FUNCTION SMPNewPage
  304.     ENDIF
  305.  
  306. ;
  307. ; pascal OSErr SMPImageErr(void )
  308. ;
  309.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  310.         Macro
  311.         _SMPImageErr
  312.             move.l              #$00000835,D0
  313.             dc.w                $AA5D
  314.         EndM
  315.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  316.         IMPORT_CFM_FUNCTION SMPImageErr
  317.     ENDIF
  318.  
  319. ;
  320. ; pascal OSErr SMPResolveToRecipient(PackedDSSpecPtr dsSpec, SMPRecipientDescriptorPtr *recipientList, AuthIdentity identity)
  321. ;
  322.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  323.         Macro
  324.         _SMPResolveToRecipient
  325.             move.l              #$0006044C,D0
  326.             dc.w                $AA5D
  327.         EndM
  328.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  329.         IMPORT_CFM_FUNCTION SMPResolveToRecipient
  330.     ENDIF
  331.  
  332.  
  333.  
  334. ;
  335. ; pascal OSErr SMPInitMailer(long mailerVersion)
  336. ;
  337.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  338.         Macro
  339.         _SMPInitMailer
  340.             move.l              #$00021285,D0
  341.             dc.w                $AA5D
  342.         EndM
  343.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  344.         IMPORT_CFM_FUNCTION SMPInitMailer
  345.     ENDIF
  346.  
  347. ;
  348. ; pascal OSErr SMPGetDimensions(short *width, short *contractedHeight, short *expandedHeight)
  349. ;
  350.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  351.         Macro
  352.         _SMPGetDimensions
  353.             move.l              #$0006125C,D0
  354.             dc.w                $AA5D
  355.         EndM
  356.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  357.         IMPORT_CFM_FUNCTION SMPGetDimensions
  358.     ENDIF
  359.  
  360. ;
  361. ; pascal OSErr SMPGetTabInfo(SMPMailerComponent *firstTab, SMPMailerComponent *lastTab)
  362. ;
  363.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  364.         Macro
  365.         _SMPGetTabInfo
  366.             move.l              #$00041274,D0
  367.             dc.w                $AA5D
  368.         EndM
  369.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  370.         IMPORT_CFM_FUNCTION SMPGetTabInfo
  371.     ENDIF
  372.  
  373. ;
  374. ; pascal OSErr SMPNewMailer(WindowPtr window, Point upperLeft, Boolean canContract, Boolean initiallyExpanded, AuthIdentity identity, PrepareMailerForDrawingUPP prepareMailerForDrawingCB, long clientData)
  375. ;
  376.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  377.         Macro
  378.         _SMPNewMailer
  379.             move.l              #$000C125D,D0
  380.             dc.w                $AA5D
  381.         EndM
  382.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  383.         IMPORT_CFM_FUNCTION SMPNewMailer
  384.     ENDIF
  385.  
  386. ;
  387. ; pascal OSErr SMPPrepareToClose(WindowPtr window)
  388. ;
  389.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  390.         Macro
  391.         _SMPPrepareToClose
  392.             move.l              #$00021287,D0
  393.             dc.w                $AA5D
  394.         EndM
  395.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  396.         IMPORT_CFM_FUNCTION SMPPrepareToClose
  397.     ENDIF
  398.  
  399. ;
  400. ; pascal OSErr SMPCloseOptionsDialog(WindowPtr window, SMPCloseOptionsPtr closeOptions)
  401. ;
  402.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  403.         Macro
  404.         _SMPCloseOptionsDialog
  405.             move.l              #$00041288,D0
  406.             dc.w                $AA5D
  407.         EndM
  408.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  409.         IMPORT_CFM_FUNCTION SMPCloseOptionsDialog
  410.     ENDIF
  411.  
  412. ;
  413. ; pascal OSErr SMPTagDialog(WindowPtr window, RString32 *theTag)
  414. ;
  415.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  416.         Macro
  417.         _SMPTagDialog
  418.             move.l              #$0004128B,D0
  419.             dc.w                $AA5D
  420.         EndM
  421.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  422.         IMPORT_CFM_FUNCTION SMPTagDialog
  423.     ENDIF
  424.  
  425. ;
  426. ; pascal OSErr SMPDisposeMailer(WindowPtr window, SMPCloseOptionsPtr closeOptions)
  427. ;
  428.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  429.         Macro
  430.         _SMPDisposeMailer
  431.             move.l              #$0004125E,D0
  432.             dc.w                $AA5D
  433.         EndM
  434.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  435.         IMPORT_CFM_FUNCTION SMPDisposeMailer
  436.     ENDIF
  437.  
  438. ;
  439. ; pascal OSErr SMPMailerEvent(const EventRecord *event, SMPMailerResult *whatHappened, FrontWindowUPP frontWindowCB, long clientData)
  440. ;
  441.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  442.         Macro
  443.         _SMPMailerEvent
  444.             move.l              #$0008125F,D0
  445.             dc.w                $AA5D
  446.         EndM
  447.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  448.         IMPORT_CFM_FUNCTION SMPMailerEvent
  449.     ENDIF
  450.  
  451. ;
  452. ; pascal OSErr SMPClearUndo(WindowPtr window)
  453. ;
  454.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  455.         Macro
  456.         _SMPClearUndo
  457.             move.l              #$00021275,D0
  458.             dc.w                $AA5D
  459.         EndM
  460.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  461.         IMPORT_CFM_FUNCTION SMPClearUndo
  462.     ENDIF
  463.  
  464. ;
  465. ; pascal OSErr SMPMailerEditCommand(WindowPtr window, SMPEditCommand command, SMPMailerResult *whatHappened)
  466. ;
  467.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  468.         Macro
  469.         _SMPMailerEditCommand
  470.             move.l              #$00051260,D0
  471.             dc.w                $AA5D
  472.         EndM
  473.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  474.         IMPORT_CFM_FUNCTION SMPMailerEditCommand
  475.     ENDIF
  476.  
  477. ;
  478. ; pascal OSErr SMPMailerForward(WindowPtr window, AuthIdentity from)
  479. ;
  480.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  481.         Macro
  482.         _SMPMailerForward
  483.             move.l              #$00041261,D0
  484.             dc.w                $AA5D
  485.         EndM
  486.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  487.         IMPORT_CFM_FUNCTION SMPMailerForward
  488.     ENDIF
  489.  
  490. ;
  491. ; pascal OSErr SMPMailerReply(WindowPtr originalLetter, WindowPtr newLetter, Boolean replyToAll, Point upperLeft, Boolean canContract, Boolean initiallyExpanded, AuthIdentity identity, PrepareMailerForDrawingUPP prepareMailerForDrawingCB, long clientData)
  492. ;
  493.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  494.         Macro
  495.         _SMPMailerReply
  496.             move.l              #$000F1262,D0
  497.             dc.w                $AA5D
  498.         EndM
  499.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  500.         IMPORT_CFM_FUNCTION SMPMailerReply
  501.     ENDIF
  502.  
  503. ;
  504. ; pascal OSErr SMPGetMailerState(WindowPtr window, SMPMailerState *itsState)
  505. ;
  506.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  507.         Macro
  508.         _SMPGetMailerState
  509.             move.l              #$00041263,D0
  510.             dc.w                $AA5D
  511.         EndM
  512.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  513.         IMPORT_CFM_FUNCTION SMPGetMailerState
  514.     ENDIF
  515.  
  516. ;
  517. ; pascal OSErr SMPSendOptionsDialog(WindowPtr window, Str255 documentName, StringPtr nativeFormatNames[2147483647], unsigned short nameCount, SMPSendFormatMask canSend, SMPSendFormat *currentFormat, SendOptionsFilterUPP filterProc, long clientData, SMPSendFormat *shouldSend, SMPSendOptionsPtr sendOptions)
  518. ;
  519.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  520.         Macro
  521.         _SMPSendOptionsDialog
  522.             move.l              #$00131388,D0
  523.             dc.w                $AA5D
  524.         EndM
  525.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  526.         IMPORT_CFM_FUNCTION SMPSendOptionsDialog
  527.     ENDIF
  528.  
  529.  
  530. ;
  531. ; pascal OSErr SMPPrepareCoverPages(WindowPtr window, short *pageCount)
  532. ;
  533.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  534.         Macro
  535.         _SMPPrepareCoverPages
  536.             move.l              #$00041264,D0
  537.             dc.w                $AA5D
  538.         EndM
  539.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  540.         IMPORT_CFM_FUNCTION SMPPrepareCoverPages
  541.     ENDIF
  542.  
  543. ;
  544. ; pascal OSErr SMPDrawNthCoverPage(WindowPtr window, short pageNumber, Boolean doneDrawingCoverPages)
  545. ;
  546.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  547.         Macro
  548.         _SMPDrawNthCoverPage
  549.             move.l              #$00041265,D0
  550.             dc.w                $AA5D
  551.         EndM
  552.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  553.         IMPORT_CFM_FUNCTION SMPDrawNthCoverPage
  554.     ENDIF
  555.  
  556. ;
  557. ; pascal OSErr SMPPrepareToChange(WindowPtr window)
  558. ;
  559.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  560.         Macro
  561.         _SMPPrepareToChange
  562.             move.l              #$00021289,D0
  563.             dc.w                $AA5D
  564.         EndM
  565.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  566.         IMPORT_CFM_FUNCTION SMPPrepareToChange
  567.     ENDIF
  568.  
  569. ;
  570. ; pascal OSErr SMPContentChanged(WindowPtr window)
  571. ;
  572.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  573.         Macro
  574.         _SMPContentChanged
  575.             move.l              #$0002126F,D0
  576.             dc.w                $AA5D
  577.         EndM
  578.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  579.         IMPORT_CFM_FUNCTION SMPContentChanged
  580.     ENDIF
  581.  
  582. ;
  583. ; pascal OSErr SMPBeginSave(WindowPtr window, const FSSpec *diskLetter, OSType creator, OSType fileType, SMPSaveType saveType, Boolean *mustAddContent)
  584. ;
  585.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  586.         Macro
  587.         _SMPBeginSave
  588.             move.l              #$000B1266,D0
  589.             dc.w                $AA5D
  590.         EndM
  591.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  592.         IMPORT_CFM_FUNCTION SMPBeginSave
  593.     ENDIF
  594.  
  595. ;
  596. ; pascal OSErr SMPEndSave(WindowPtr window, Boolean okToSave)
  597. ;
  598.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  599.         Macro
  600.         _SMPEndSave
  601.             move.l              #$00031270,D0
  602.             dc.w                $AA5D
  603.         EndM
  604.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  605.         IMPORT_CFM_FUNCTION SMPEndSave
  606.     ENDIF
  607.  
  608. ;
  609. ; pascal OSErr SMPBeginSend(WindowPtr window, OSType creator, OSType fileType, SMPSendOptionsPtr sendOptions, Boolean *mustAddContent)
  610. ;
  611.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  612.         Macro
  613.         _SMPBeginSend
  614.             move.l              #$000A1267,D0
  615.             dc.w                $AA5D
  616.         EndM
  617.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  618.         IMPORT_CFM_FUNCTION SMPBeginSend
  619.     ENDIF
  620.  
  621. ;
  622. ; pascal OSErr SMPEndSend(WindowPtr window, Boolean okToSend)
  623. ;
  624.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  625.         Macro
  626.         _SMPEndSend
  627.             move.l              #$00031271,D0
  628.             dc.w                $AA5D
  629.         EndM
  630.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  631.         IMPORT_CFM_FUNCTION SMPEndSend
  632.     ENDIF
  633.  
  634. ;
  635. ; pascal OSErr SMPOpenLetter(const LetterDescriptor *letter, WindowPtr window, Point upperLeft, Boolean canContract, Boolean initiallyExpanded, PrepareMailerForDrawingUPP prepareMailerForDrawingCB, long clientData)
  636. ;
  637.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  638.         Macro
  639.         _SMPOpenLetter
  640.             move.l              #$000C1268,D0
  641.             dc.w                $AA5D
  642.         EndM
  643.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  644.         IMPORT_CFM_FUNCTION SMPOpenLetter
  645.     ENDIF
  646.  
  647. ;
  648. ; pascal OSErr SMPAddMainEnclosure(WindowPtr window, const FSSpec *enclosure)
  649. ;
  650.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  651.         Macro
  652.         _SMPAddMainEnclosure
  653.             move.l              #$0004127D,D0
  654.             dc.w                $AA5D
  655.         EndM
  656.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  657.         IMPORT_CFM_FUNCTION SMPAddMainEnclosure
  658.     ENDIF
  659.  
  660. ;
  661. ; pascal OSErr SMPGetMainEnclosureFSSpec(WindowPtr window, FSSpec *enclosureDir)
  662. ;
  663.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  664.         Macro
  665.         _SMPGetMainEnclosureFSSpec
  666.             move.l              #$0004127E,D0
  667.             dc.w                $AA5D
  668.         EndM
  669.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  670.         IMPORT_CFM_FUNCTION SMPGetMainEnclosureFSSpec
  671.     ENDIF
  672.  
  673. ;
  674. ; pascal OSErr SMPAddContent(WindowPtr window, MailSegmentType segmentType, Boolean appendFlag, void *buffer, unsigned long bufferSize, StScrpRec *textScrap, Boolean startNewScript, ScriptCode script)
  675. ;
  676.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  677.         Macro
  678.         _SMPAddContent
  679.             move.l              #$000C127A,D0
  680.             dc.w                $AA5D
  681.         EndM
  682.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  683.         IMPORT_CFM_FUNCTION SMPAddContent
  684.     ENDIF
  685.  
  686. ;
  687. ; pascal OSErr SMPReadContent(WindowPtr window, MailSegmentMask segmentTypeMask, void *buffer, unsigned long bufferSize, unsigned long *dataSize, StScrpRec *textScrap, ScriptCode *script, MailSegmentType *segmentType, Boolean *endOfScript, Boolean *endOfSegment, Boolean *endOfContent, long *segmentLength, long *segmentID)
  688. ;
  689.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  690.         Macro
  691.         _SMPReadContent
  692.             move.l              #$0019127B,D0
  693.             dc.w                $AA5D
  694.         EndM
  695.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  696.         IMPORT_CFM_FUNCTION SMPReadContent
  697.     ENDIF
  698.  
  699. ;
  700. ; pascal OSErr SMPGetFontNameFromLetter(WindowPtr window, short fontNum, Str255 fontName, Boolean doneWithFontTable)
  701. ;
  702.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  703.         Macro
  704.         _SMPGetFontNameFromLetter
  705.             move.l              #$0006127C,D0
  706.             dc.w                $AA5D
  707.         EndM
  708.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  709.         IMPORT_CFM_FUNCTION SMPGetFontNameFromLetter
  710.     ENDIF
  711.  
  712. ;
  713. ; pascal OSErr SMPAddBlock(WindowPtr window, const OCECreatorType *blockType, Boolean append, void *buffer, unsigned long bufferSize, MailBlockMode mode, unsigned long offset)
  714. ;
  715.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  716.         Macro
  717.         _SMPAddBlock
  718.             move.l              #$000C127F,D0
  719.             dc.w                $AA5D
  720.         EndM
  721.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  722.         IMPORT_CFM_FUNCTION SMPAddBlock
  723.     ENDIF
  724.  
  725. ;
  726. ; pascal OSErr SMPReadBlock(WindowPtr window, const OCECreatorType *blockType, unsigned short blockIndex, void *buffer, unsigned long bufferSize, unsigned long dataOffset, unsigned long *dataSize, Boolean *endOfBlock, unsigned long *remaining)
  727. ;
  728.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  729.         Macro
  730.         _SMPReadBlock
  731.             move.l              #$00111280,D0
  732.             dc.w                $AA5D
  733.         EndM
  734.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  735.         IMPORT_CFM_FUNCTION SMPReadBlock
  736.     ENDIF
  737.  
  738. ;
  739. ; pascal OSErr SMPEnumerateBlocks(WindowPtr window, unsigned short startIndex, void *buffer, unsigned long bufferSize, unsigned long *dataSize, unsigned short *nextIndex, Boolean *more)
  740. ;
  741.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  742.         Macro
  743.         _SMPEnumerateBlocks
  744.             move.l              #$000D1281,D0
  745.             dc.w                $AA5D
  746.         EndM
  747.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  748.         IMPORT_CFM_FUNCTION SMPEnumerateBlocks
  749.     ENDIF
  750.  
  751. ;
  752. ; pascal OSErr SMPDrawMailer(WindowPtr window)
  753. ;
  754.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  755.         Macro
  756.         _SMPDrawMailer
  757.             move.l              #$00021269,D0
  758.             dc.w                $AA5D
  759.         EndM
  760.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  761.         IMPORT_CFM_FUNCTION SMPDrawMailer
  762.     ENDIF
  763.  
  764.  
  765. ;
  766. ; pascal OSErr SMPSetSubject(WindowPtr window, const RString *text)
  767. ;
  768.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  769.         Macro
  770.         _SMPSetSubject
  771.             move.l              #$0004126B,D0
  772.             dc.w                $AA5D
  773.         EndM
  774.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  775.         IMPORT_CFM_FUNCTION SMPSetSubject
  776.     ENDIF
  777.  
  778. ;
  779. ; pascal OSErr SMPSetFromIdentity(WindowPtr window, AuthIdentity from)
  780. ;
  781.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  782.         Macro
  783.         _SMPSetFromIdentity
  784.             move.l              #$0004126C,D0
  785.             dc.w                $AA5D
  786.         EndM
  787.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  788.         IMPORT_CFM_FUNCTION SMPSetFromIdentity
  789.     ENDIF
  790.  
  791. ;
  792. ; pascal OSErr SMPAddAddress(WindowPtr window, SMPAddressType addrType, OCEPackedRecipient *address)
  793. ;
  794.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  795.         Macro
  796.         _SMPAddAddress
  797.             move.l              #$0005126D,D0
  798.             dc.w                $AA5D
  799.         EndM
  800.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  801.         IMPORT_CFM_FUNCTION SMPAddAddress
  802.     ENDIF
  803.  
  804. ;
  805. ; pascal OSErr SMPAddAttachment(WindowPtr window, const FSSpec *attachment)
  806. ;
  807.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  808.         Macro
  809.         _SMPAddAttachment
  810.             move.l              #$0004126E,D0
  811.             dc.w                $AA5D
  812.         EndM
  813.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  814.         IMPORT_CFM_FUNCTION SMPAddAttachment
  815.     ENDIF
  816.  
  817. ;
  818. ; pascal OSErr SMPAttachDialog(WindowPtr window)
  819. ;
  820.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  821.         Macro
  822.         _SMPAttachDialog
  823.             move.l              #$00021276,D0
  824.             dc.w                $AA5D
  825.         EndM
  826.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  827.         IMPORT_CFM_FUNCTION SMPAttachDialog
  828.     ENDIF
  829.  
  830.  
  831. ;
  832. ; pascal OSErr SMPExpandOrContract(WindowPtr window, Boolean expand)
  833. ;
  834.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  835.         Macro
  836.         _SMPExpandOrContract
  837.             move.l              #$00031272,D0
  838.             dc.w                $AA5D
  839.         EndM
  840.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  841.         IMPORT_CFM_FUNCTION SMPExpandOrContract
  842.     ENDIF
  843.  
  844.  
  845. ;
  846. ; pascal OSErr SMPMoveMailer(WindowPtr window, short dh, short dv)
  847. ;
  848.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  849.         Macro
  850.         _SMPMoveMailer
  851.             move.l              #$0004126A,D0
  852.             dc.w                $AA5D
  853.         EndM
  854.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  855.         IMPORT_CFM_FUNCTION SMPMoveMailer
  856.     ENDIF
  857.  
  858.  
  859. ;
  860. ; pascal OSErr SMPBecomeTarget(WindowPtr window, Boolean becomeTarget, SMPMailerComponent whichField)
  861. ;
  862.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  863.         Macro
  864.         _SMPBecomeTarget
  865.             move.l              #$00051273,D0
  866.             dc.w                $AA5D
  867.         EndM
  868.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  869.         IMPORT_CFM_FUNCTION SMPBecomeTarget
  870.     ENDIF
  871.  
  872.  
  873. ;
  874. ; pascal OSErr SMPGetComponentSize(WindowPtr window, unsigned short whichMailer, SMPMailerComponent whichField, unsigned short *size)
  875. ;
  876.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  877.         Macro
  878.         _SMPGetComponentSize
  879.             move.l              #$00071277,D0
  880.             dc.w                $AA5D
  881.         EndM
  882.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  883.         IMPORT_CFM_FUNCTION SMPGetComponentSize
  884.     ENDIF
  885.  
  886.  
  887. ;
  888. ; pascal OSErr SMPGetComponentInfo(WindowPtr window, unsigned short whichMailer, SMPMailerComponent whichField, void *buffer)
  889. ;
  890.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  891.         Macro
  892.         _SMPGetComponentInfo
  893.             move.l              #$00071278,D0
  894.             dc.w                $AA5D
  895.         EndM
  896.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  897.         IMPORT_CFM_FUNCTION SMPGetComponentInfo
  898.     ENDIF
  899.  
  900.  
  901. ;
  902. ; pascal OSErr SMPGetListItemInfo(WindowPtr window, unsigned short whichMailer, SMPMailerComponent whichField, void *buffer, unsigned long bufferLength, unsigned short startItem, unsigned short *itemCount, unsigned short *nextItem, Boolean *more)
  903. ;
  904.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  905.         Macro
  906.         _SMPGetListItemInfo
  907.             move.l              #$00101279,D0
  908.             dc.w                $AA5D
  909.         EndM
  910.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  911.         IMPORT_CFM_FUNCTION SMPGetListItemInfo
  912.     ENDIF
  913.  
  914. ;
  915. ; pascal OSErr SMPImage(WindowPtr window, SMPDrawImageUPP drawImageProc, long imageRefCon, Boolean supportsColor)
  916. ;
  917.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  918.         Macro
  919.         _SMPImage
  920.             move.l              #$00071282,D0
  921.             dc.w                $AA5D
  922.         EndM
  923.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  924.         IMPORT_CFM_FUNCTION SMPImage
  925.     ENDIF
  926.  
  927. ;
  928. ; pascal OSErr SMPGetNextLetter(OSType *typesList, short numTypes, LetterDescriptor *adjacentLetter)
  929. ;
  930.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  931.         Macro
  932.         _SMPGetNextLetter
  933.             move.l              #$00051286,D0
  934.             dc.w                $AA5D
  935.         EndM
  936.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  937.         IMPORT_CFM_FUNCTION SMPGetNextLetter
  938.     ENDIF
  939.  
  940. ;
  941. ; pascal OSErr SMPGetLetterInfo(LetterSpec *mailboxSpec, SMPLetterInfo *info)
  942. ;
  943.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  944.         Macro
  945.         _SMPGetLetterInfo
  946.             move.l              #$0004128A,D0
  947.             dc.w                $AA5D
  948.         EndM
  949.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  950.         IMPORT_CFM_FUNCTION SMPGetLetterInfo
  951.     ENDIF
  952.  
  953.  
  954.  
  955.     ENDIF ; __OCESTANDARDMAIL__ 
  956.  
  957.